package com.codez.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.alibaba.dubbo.config.annotation.Reference;
import com.codez.domain.Menu;
import com.coedz.service.DMenuService;
import com.coedz.service.DUserService;

/**
 *  @author codez
 *	@createTime 2019-04-19 03:57:52
 */

@Service
public class MenuService implements DMenuService , DUserService{

	@Reference
	private DMenuService menuService;
	@Reference
	private DUserService userService;
	
	public List<Menu> findAll() {
		return menuService.findAll();
	}

	public Menu findById(Integer id) {
		return menuService.findById(id);
	}

	public int update(Menu menu) {
		return menuService.update(menu);
	}

	@Override
	public String hello(String name) {
		return  userService.hello(name);
	}

}
